package device_center;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

/**
 * @author Ezio.Auditore
 * @EnableResourceServer(Oauth2资源服务器鉴权)
 */
@SpringBootApplication
@MapperScan("device_center.*")
@EnableFeignClients
@EnableResourceServer
@EnableDiscoveryClient
public class DeviceCenterApplication {

    public static void main(String[] args) throws InterruptedException {
        ConfigurableApplicationContext run = SpringApplication.run(DeviceCenterApplication.class, args);
    }
}
